﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace WS.EKA.FJYCM.Business.DAL
{
    public class Config
    {
        public static string ARConnection
        {
            get
            {
                return ConfigurationManager.ConnectionStrings["ARConnection"].ConnectionString;
            }
        }

        public static string PConnection
        {
            get
            {
                return ConfigurationManager.ConnectionStrings["PConnection"].ConnectionString;
            }
        }

        public static string[] DepartmentNames
        {
            get
            {
                return ConfigurationManager.AppSettings.GetValues("deptName").First().Split(',');
            }
        }
    }
}
